import request from '@/utils/request'

export function addVideo(video) {
  return request({
    url: `/eduservice/video/addVideo`,
    method: 'post',
    data:video
  })
}

export function getVideo(id) {
  return request({
    url: `/eduservice/video/getVideo/${id}`,
    method: 'get'
  })
}

export function updateVideo(video) {
  return request({
    url: `/eduservice/video/updateVideo`,
    method: 'put',
    data:video
  })
}

export function deleteVideo(id) {
  return request({
    url: `/eduservice/video/deleteVideo/${id}`,
    method: 'delete'
  })
}


export function deleteAlyiVideo(id) {
  return request({
    url: `/vod/video/removeAlyiVideo/${id}`,
    method: 'delete'
  })
}


